/**
 * 
 */
package it.agm.fanta;

import it.agm.fanta.constants.Constants;
import android.app.backup.BackupAgentHelper;
import android.app.backup.SharedPreferencesBackupHelper;

/**
 * @author alberto
 *
 */
public class FantaBackupAgent extends BackupAgentHelper {
	// The name of the SharedPreferences file
//	  static final String PREFS = "myprefs";

	  // A key to uniquely identify the set of backup data
	  static final String PREFS_BACKUP_KEY = Constants.PREFS_NAME;

	  @Override
	  public void onCreate() {
	    SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, Constants.PREFS_NAME);
	    addHelper(PREFS_BACKUP_KEY, helper);
	  }
}
